import request from '@/utils/request'

// 查询应用列表

export function listRegime(query) {
  return request({
    url: '/system/regimeNews/list',
    method: 'get',
    params: query
  })
}
export function listNotice(query) {
  return request({
    url: '/system/regimeNews/newsList',
    method: 'get',
    params: query
  })
}
export function listFile(query) {
  return request({
    url: '/kowledge/list',
    method: 'get',
    params: query
  })
}
export function updateRecordList(query) {
  return request({
    url: '/kowledge/updateRecordList',
    method: 'get',
    params: query
  })
}

export function fileTypeCount(query) {
  return request({
    url: '/kowledge/fileTypeCount',
    method: 'get',
    params: query
  })
}
export function fileSubmitByDept(query) {
  return request({
    url: '/kowledge/fileSubmitByDept',
    method: 'get',
    params: query
  })
}
export function shareMe(query) {
  return request({
    url: '/shareMe/list',
    method: 'get',
    params: query
  })
}
export function saveShare(query) {
  return request({
    url: '/shareMe/save',
    method: 'post',
    data: query
  })
}
export function selectShareCount(query) {
  return request({
    url: '/kowledge/selectShareCount',
    method: 'get',
    params: query
  })
}
export function selectUpdateCount(query) {
  return request({
    url: '/kowledge/selectUpdateCount',
    method: 'get',
    params: query
  })
}

export function selectSecc(query) {
  return request({
    url: '/kowledge/selectSecc',
    method: 'get',
    params: query
  })
}
export function selectSeccByWtxz(query) {
  return request({
    url: '/kowledge/selectSeccByWtxz',
    method: 'get',
    params: query
  })
}
export function selectSeccByProjectName(query) {
  return request({
    url: '/kowledge/selectSeccByProjectName',
    method: 'get',
    params: query
  })
}
export function selectSeccByDept(query) {
  return request({
    url: '/kowledge/selectSeccByDept',
    method: 'get',
    params: query
  })
}

export function selectSeccByUnitName(query) {
  return request({
    url: '/kowledge/selectSeccByUnitName',
    method: 'get',
    params: query
  })
}
export function selectPictures(query) {
  return request({
    url: '/kowledge/selectPictures',
    method: 'get',
    params: query
  })
}
export function getTestReport(query) {
  return request({
    url: '/kowledge/getTestReport',
    method: 'get',
    params: query
  })
}
export function getTestDetail(query) {
  return request({
    url: '/kowledge/getTestDetail',
    method: 'post',
    data: query
  })
}
export function getTestCount(query) {
  return request({
    url: '/kowledge/getTestCount',
    method: 'post',
    data: query
  })
}
export function getTestType(query) {
  return request({
    url: '/kowledge/getTestType',
    method: 'post',
    data: query
  })
}

export function insertZJ(query) {
  return request({
    url: '/deptDocument/insertZJ',
    method: 'post',
    data: query
  })
}
export function savescsd(query) {
  return request({
    url: '/kowledge/savescsd',
    method: 'post',
    data: query
  })
}


export function savePictures(data) {
  return request({
    url: '/kowledge/savePictures',
    method: 'post',
    data: data
  })
}
export function listVariation(query) {
  return request({
    url: '/kowledge/getVariation',
    method: 'get',
    params: query
  })
}
export function selectVOrderByType(query) {
  return request({
    url: '/kowledge/selectVOrderByType',
    method: 'post',
    data: query
  })
}
export function selectVOrderByLs(query) {
  return request({
    url: '/kowledge/selectVOrderByLs',
    method: 'post',
    data: query
  })
}
export function selectVOrderByProject(query) {
  return request({
    url: '/kowledge/selectVOrderByProject',
    method: 'post',
    data: query
  })
}
export function selectVOrderByUnit(query) {
  return request({
    url: '/kowledge/selectVOrderByUnit',
    method: 'post',
    data: query
  })
}
export function deleteVariationOrder(query) {
  return request({
    url: '/kowledge/deleteVariationOrder',
    method: 'post',
    data: query
  })
}
export function saveOrUpdate(query) {
  return request({
    url: '/kowledge/saveOrUpdate',
    method: 'post',
    data: query
  })
}

